﻿/*
    类 说 明：数据实体类，与数据库表一一对应
	生成时间：2021/6/26 14:27:16
	生成工具：Kalman Studio
*/

using System;
using FreeSql.DataAnnotations;

namespace QuDao
{
	/// <summary>
    /// sys_user: sys_用户
    /// </summary>
	[Table(Name ="sys_user")]
	public partial class SysUser
	{
		/// <summary>
        /// 用户ID
        /// </summary>
		[Column(IsPrimary =true, IsIdentity =true)]
		public int UserID { get; set; }
		
		/// <summary>
        /// 用户名
        /// </summary>
		public string UserName { get; set; }

        /// <summary>
        /// 用户类型：1-平台，2-租户
        /// </summary>
        public int UserType { get; set; }

		/// <summary>
		/// 租户ID
		/// </summary>
		public int TID { get; set; }

        ///// <summary>
        ///// 门店ID
        ///// </summary>
        //public int ShopID { get; set; }

        /// <summary>
        /// 角色ID：-1表示超级管理员
        /// </summary>
        public int RoleID { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        public string Mobile { get; set; }
		
		/// <summary>
        /// 姓名
        /// </summary>
		public string TrueName { get; set; }
		
		/// <summary>
        /// 密码哈希
        /// </summary>
		public string PwdHash { get; set; }
		
		/// <summary>
        /// 密码盐：用于对密码的混淆加密
        /// </summary>
		public string PwdSalt { get; set; }
		
		/// <summary>
        /// 登录次数
        /// </summary>
		public int LoginCount { get; set; }
		
		/// <summary>
        /// 上次登录时间
        /// </summary>
		public DateTime LastLoginTime { get; set; }
		
		/// <summary>
        /// 是否启用：0-禁用，1-启用
        /// </summary>
		public bool IsEnable { get; set; }
		
		/// <summary>
        /// 创建时间
        /// </summary>
		public DateTime CreateTime { get; set; }
		
		/// <summary>
        /// 修改时间
        /// </summary>
		public DateTime ModifyTime { get; set; }
		
		/// <summary>
        /// 备注
        /// </summary>
		public string Memo { get; set; }
		
				
	}
}